package cn.tutu.blockchain.exchange.entity;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotBlank;

import cn.tutu.blockchain.base.BaseObject;

public class Exchange extends BaseObject {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8241470225492755332L;
	@NotBlank(message = "用户ID不能为空!")
	private String userId; // 用户ID
	@NotBlank(message = "转账流水不能为空!")
	private String transferNum; // 转账流水号
	private String status; // 处理状态 0:已申请 1:转账失败 2：转账成功 3：待处理 4：已处理
	@NotNull(message = "币值不能为空!")
	private Double currencyValue; // 币值
	@NotNull(message = "用户电话不能为空!")
	private String userPhone;

	private Double rmb; // 可兑换人民币
	private String rate; // 兑换比率

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getTransferNum() {
		return transferNum;
	}

	public void setTransferNum(String transferNum) {
		this.transferNum = transferNum;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Double getCurrencyValue() {
		return currencyValue;
	}

	public void setCurrencyValue(Double currencyValue) {
		this.currencyValue = currencyValue;
	}

	public Double getRmb() {
		return rmb;
	}

	public void setRmb(Double rmb) {
		this.rmb = rmb;
	}

	public String getRate() {
		return rate;
	}

	public void setRate(String rate) {
		this.rate = rate;
	}

	public String getUserPhone() {
		return userPhone;
	}

	public void setUserPhone(String userPhone) {
		this.userPhone = userPhone;
	}

}
